package com.atguigu.yygh.user.service;

import com.atguigu.yygh.model.user.UserInfo;
import com.atguigu.yygh.vo.user.LoginVo;
import com.atguigu.yygh.vo.user.UserAuthVo;
import com.atguigu.yygh.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {
    Map login(LoginVo loginVo);

    UserInfo selectUserByOpenid(String openid);

    Map boundlePhone(LoginVo loginVo);

    UserInfo getByUserId(Long userId);

    void userAuth(Long userId, UserAuthVo userAuthVo);

    Page<UserInfo> selectPage(Integer pageNum, Integer pageSize, UserInfoQueryVo queryVo);

    void updateStatus(Long userId, Integer status);

    Map getUserDetail(Long id);

    void updateAuthStatus(Long userId, Integer authStatus);

    boolean checkUserAuthStatus(Long userId);
}
